import * as actions from './action-type';
export function count(state = 0, action) {
    switch (action.type) {
        case actions.handle_add:
            return state + action.data;
        case actions.handle_decrement:
            return state - action.data;
        default:
            return state
    }
}